
    Mistasapp.Router.map(function() {
        this.resource("teste");
        this.resource("posts", function() {
            this.resource("post", {path: ":post_id"});
        });

    });
    Mistasapp.TesteRoute = Ember.Route.extend({
        model: function() {
            return ['red', 'yellow', 'blue'];
        }
    });
    Mistasapp.PostsRoute = Ember.Route.extend({
        model: function() {
            return posts;
        }
    });
    Mistasapp.PostRoute = Ember.Route.extend({
        model: function(params) {
            return posts.findBy('id', params.post_id);
        }
    });

    Mistasapp.PostController = Ember.ObjectController.extend({
        isEditing: false,
        actions: {
            edit: function() {
                this.set('isEditing', true);
            },
            doneEditing: function() {
                this.set('isEditing', false);
            }
        }
    });